package com.joe.blockview.model;

import java.util.List;
import java.util.Map;

public class Oprate {
    private int type;
    private String name;
    private String command;
    //放置某些命令需要的参数
    private Map<String, String> params;
    private List<Oprate> inOprate;

    private WorkspacePoint workspacePoint;

    public WorkspacePoint getWorkspacePoint() {
        return workspacePoint;
    }

    public void setWorkspacePoint(WorkspacePoint workspacePoint) {
        this.workspacePoint = workspacePoint;
    }

    private Oprate inPutOprate;

    public Oprate getInPutOprate() {
        return inPutOprate;
    }

    public void setInPutOprate(Oprate inPutOprate) {
        this.inPutOprate = inPutOprate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    public List<Oprate> getInOprate() {
        return inOprate;
    }

    public void setInOprate(List<Oprate> inOprate) {
        this.inOprate = inOprate;
    }

    @Override
    public String toString() {
        return "Oprate{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", command='" + command + '\'' +
                ", params=" + params +
                ", inOprate=" + inOprate +
                ", workspacePoint=" + workspacePoint +
                ", inPutOprate=" + inPutOprate +
                '}';
    }
}
